/*
 * @Author: jiu yin
 * @Date: 2023-03-30 15:39:54
 * @LastEditTime: 2023-04-24 15:46:13
 * @LastEditors: jiu yin zhen jing
 * @FilePath: \init-admin\src\router\array.js
 * jiu
 */

import layout from '@/layout'
let routerArr = [
    {
        path: '/',
        name: 'home',
        component: layout,
        meta: { name: "首页" },
        children: [
            {
                path: '/',
                name: '/',
                component: () => import("@/views/home")
            },
        ]
    },
    {
        path: '/test1',
        name: 'test11',
        component: layout,
        meta: { name: "测试展开",icon:"Connection" },
        children: [
            {
                path: '1',
                name: '11',
                meta: { name: "包含孩子的",icon:"Lock" },
                component: () => import("@/views/test/1.vue"),
                children: [
                    {
                        path: '123',
                        name: '1113231',
                        meta: { name: "包含孩子的1" },
                        component: () => import("@/views/test/1.vue"),
                    },
                    {
                        path: '1234123123123',
                        name: '1113232132124413423',
                        meta: { name: "包含孩子的2" },
                        component: () => import("@/views/test/2.vue"),
                    }
                ]

            },
            {
                path: '2',
                name: '22',
                meta: { name: "测试2" ,icon:"MuteNotification"},
                component: () => import("@/views/test/2.vue")
            },
        ]
    },
    {
        path: '/test3',
        name: 'test1',
        component: layout,
        meta: { name: "测试展开" },
        children: [
            {
                path: '1',
                name: '1',
                meta: { name: "测试1"  ,icon:"MuteNotification"},
                component: () => import("@/views/test/1.vue")

            },
            {
                path: '2',
                name: '2',
                meta: { name: "测试2" },
                component: () => import("@/views/test/2.vue")

            },
        ]
    },
    {
        path: '/test2',
        name: 'test2',
        component: layout,

        children: [
            {
                path: '1',
                name: '3',
                meta: { name: "测试3" ,keepAlive:false},
                component: () => import("@/views/test/1.vue")

            },
            {
                path: '2',
                name: '4',
                meta: { name: "测试4", hidden: true },
                component: () => import("@/views/test/2.vue")
            },
        ]
    },

    {
        path: '/home',
        name: 'home1',
        component: layout,
        meta: { name:'鬼步斩影' ,i18n:"message.hello"},
        children: [
            {
                path: 'index',
                name: 'home1Index',
                component: () => import("@/views/test")
            },
        ]
    },

]
export default routerArr